import { Login } from '../pages/Login/Login'
import MainPage from '../pages/MainPage/MainPage'
import Index from '../pages/Index/Index2'
import Classification from '../pages/Classification/Classification'
import BookDetails from '../pages/BookDetails/BookDetails.jsx'
import CircleDetails from '../pages/circleDetails/circleDetails.jsx'
import BookRanking from '../pages/BookRanking/BookRanking'
import ReadBook from '../pages/ReadBook/ReadBook'
import PersonalCenter from '../pages/PersonalCenter/PersonalCenter'

let routers = [{
        path: '/',
        name: '登录1',
        redirect: '/Login',
        meta: {
            isLogin: false,
        }
    },
    {
        path: '/Login',
        name: '登录',
        component: Login,
        meta: {
            isLogin: false,
        }
    },
    {
        path: '/TotalEntry',
        name: '总入口',
        component: MainPage,
        // redirect: '/TotalEntry/Index',
        meta: {
            isLogin: false,
        },
        children: [{
                path: '/TotalEntry/Index',
                name: '首页',
                component: Index,
                meta: {
                    isLogin: false,
                },
            },
            {
                path: '/TotalEntry/Classification',
                name: '分类',
                component: Classification,
                meta: {
                    isLogin: false,
                },
            },
            {
                path: '/TotalEntry/BookDetails',
                name: '书籍详情',
                component: BookDetails,
                meta: {
                    isLogin: false,
                },
            },
            {
                path: '/TotalEntry/BookRanking',
                name: '书籍排行',
                component: BookRanking,
                meta: {
                    isLogin: false,
                },
            },
            {
                path: '/TotalEntry/CircleDetails',
                name: '精选圈子',
                component: CircleDetails,
                meta: {
                    isLogin: false,
                },
            },
            {
                path: '/TotalEntry/PersonalCenter',
                name: '个人中心',
                component: PersonalCenter,
                meta: {
                    isLogin: false,
                },
            },
        ],
    },
    {
        path: '/ReadBook',
        name: '阅读图书',
        component: ReadBook,
        meta: {
            isLogin: false,
        },
    },
]

export default routers